<?php
include_once dirname(__FILE__)."/../ini.php";
include_once ROOTDIR.'/common/header.php';
 if(isset($_SESSION['isLogin'])|| $_SESSION['isLogin']==true){
		include 'leftMenu.php';
		
 }
else {
	//TODO change $urlRef with the link to membres/index.php
	$urlRef=$_SERVER['HTTP_REFERER'];
	header("Location:./../common/login/loginPage.php?urlRef=$urlRef");
}
echo "Bienvenue <b>".$_SESSION['nom']."</b> a l'espace membre";
?>